package com.health.service;

import com.health.dao.HealthComboDao;
import com.health.pojo.ExamineOrder;
import com.health.pojo.HealthAttributes;

import java.util.List;

public class HealthComboService {

    HealthComboDao healthComboDao = new HealthComboDao();

    public List<ExamineOrder> selectByCombo() {
        // 连表查询套餐项以及对应的每个套餐的体检项
        return healthComboDao.selectByExamineOrder();
    }

    public List<HealthAttributes> selectOptionByAttribute(String examineId) {
        return healthComboDao.selectByExamineId(examineId);
    }

    public boolean bookCombo(ExamineOrder examineOrder, Integer userId) {
        return healthComboDao.insertByExamineOrder(examineOrder, userId);
    }
}
